package com.laxcen.smoke.service;

import com.github.pagehelper.PageInfo;
import com.laxcen.smoke.dto.res.ResourceListRes;
import com.laxcen.smoke.util.Response;

public interface ResourceService {

    Response insert(String name, String type, String url, String permission, long parentid, int sort, int external, int available);

    Response delete(long id);

    Response deletemore(String id);

    Response update(long id, String name, String type, String url, String permission, long parentid, int sort, int external, int available);

    Response<PageInfo<ResourceListRes>> get(int pageNo, int pageSize);

    Response<PageInfo<ResourceListRes>> getByTab(String name, int pageNo, int pageSize);

}
